package com.it.bean;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.it.bean.core.SuperBean;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.Table;
import java.util.Date;

@Data
@Table(name = "sys_user")
@EqualsAndHashCode(callSuper = true)
public class User extends SuperBean {
    private String name;
    private String username;
    private String password;
    private String sex;
    private String phone;
    private String address;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date birthday;
    private String cardId;
    private String avatar;
    private String wxOpenId;
}
